using UnityEngine;
using UnityEngine.UI;
using TMPro;

public class GameMain : MonoBehaviour
{
    
    public TextMeshProUGUI scoreText;
    
    // Start is called before the first frame update
    void Start()
    {
        
        scoreText.text += ", Game baobao 我要去透透气了";
        
        //创建一个正方形
        GameObject square = GameObject.CreatePrimitive(PrimitiveType.Cube);
        //设置它的名字
        square.name = "正方形";
        //设置它的位置
        square.transform.position = new Vector3(0, 0, 0);
        //设置它的大小
        square.transform.localScale = new Vector3(2, 2, 1);
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}